<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<title>updateAgoods.jsp</title>
<link href="css/admin/common.css" type="text/css" rel="stylesheet">
</head>    
<body>
	<form:form action="/admin/room/updateARoom" method="post" modelAttribute="room">
		<table border=1 style="border-collapse: collapse">
			<caption>
				<font size=4 face=华文新魏>修改客房</font>
			</caption>
			<tr>
				<td><font size=4 face=华文新魏>客房间号<font color="red">*</font></font></td>
				<td>
					<input name="roomId" id="roomId" readonly="readonly" value="${room.roomId}"/>
				</td>
			</tr>
			<tr>
				<td><font size=4 face=华文新魏>客房面积</font></td>
				<td>
					<form:input path="roomArea"/>
				</td>
			</tr>
			<tr>
				<td><font size=4 face=华文新魏>原价<font color="red">*</font></font></td>
				<td>
					<form:input path="roomPrePrice"/>
				</td>
			</tr>
			<tr>
				<td><font size=4 face=华文新魏>折扣价</font></td>
				<td>
					<form:input path="roomNowPrice"/>
				</td>
			</tr>
			<tr>
				<td><font size=4 face=华文新魏>客房状态</font></td>
				<td>
					<form:select path="roomState">
						<c:forEach var="i" begin="0" end="${roomStates.size()-1}">
							<form:option value="${i}" label="${roomStates.get(i)}"/>
						</c:forEach>
					</form:select>
				</td>
			</tr>
			<tr>
				<td><font size=4 face=华文新魏>客房类型</font></td>
				<td>
					<form:select path="roomType">
						<c:forEach var="i" begin="0" end="${roomTypes.size()-1}">
							<form:option value="${i}" label="${roomTypes.get(i)}"/>
						</c:forEach>
					</form:select>
				</td>
			</tr>
			<tr>
				<td><font size=4 face=华文新魏>客房描述</font></td>
				<td><form:input path="roomDescribe"/></td>
			</tr>
			<tr>
				<td align="center">
					<input type="submit" value="提交"/>
				</td>
				<td align="left">
					<input type="reset" value="重置"/>
				</td>
			</tr>
		</table>
	</form:form>
	${msg}
</body>
</html>
